//
//  AFNetHandle.h
//  热点
//
//  Created by dllo on 15/9/22.
//  Copyright (c) 2015年 荣伟峰. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, responseStyle) {
    DATA,
    JSON,
    XML,
};

typedef NS_ENUM(NSUInteger, bodyStyle) {
    JSONStyle,
    stringStyle,
};

typedef void (^GetAFN) (id responseObject);

@interface AFNetHandle : NSObject

+(void)GETWithURL:(NSString *)url body:(NSDictionary *)body httpHead:(NSDictionary *)head responseStyle:(responseStyle)style success:(void (^)(id result))success fail:(void (^)(NSError *error))fail;

@end
